<?php


namespace api\modules\app\controllers;


use api\components\BaseController;
use api\modules\app\models\QrcodeBind;
use api\modules\app\services\QrcodeBindService;
use api\traits\ControllerTrait;
use api\traits\LoginTrait;

class QrcodeBindController extends BaseController
{
    use ControllerTrait;

    public $modelClass = '';

    public function actions()
    {
        $actions = parent::actions();
        unset($actions['index'],$actions['create'],$actions['update'],$actions['delete'],$actions['view']);
        return $actions;
    }

    public function actionIndex2() {
        $params = $this->getQuery();
        $service =  new QrcodeBindService();
        $result = $service->list($params);
        return $result;
    }

    public function actionIndex() {
        $params = $this->getQuery();
        $service =  new QrcodeBindService();
        $result = $service->cityList($params);
        return $result;
    }
}